package com.example.springaop.aop.service.impl;

import com.example.springaop.aop.annotation.UserAnnotation;
import com.example.springaop.aop.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService2 {
    @Autowired
    private UserDao userDao;

    public void add(){
        userDao.add();
    }
    public void delete(){
        userDao.delete();
    }
    public void update(){
        userDao.update();
    }


    @UserAnnotation(method = "用户查询方法",module = "用户模块")
    public String query(int id,String[] args){
        return userDao.query(id);
    }
}
